'Declaration
<CanBeNullAttribute()> Protected Overloads Function Synchronize(Of TResult As Class)( _ ByVal function As Func(Of TResult) _ ) As TResult
'Usage
Dim instance As NotifyingWidget Dim function As Func(Of TResult) Dim value As TResult value = instance.Synchronize(Of TResult)(function)
[CanBeNull()] protected TResult Synchronize<TResult>( Func<TResult> function ) where TResult: class
[CanBeNull()] protected: TResult^ Synchronizegeneric<typename TResult> ( Func<TResult^>^ function ) where TResult: ref class
Parameters
- function
- Function to be invoked.
Type Parameters
- TResult
- Type of the function result.
Return Value
Returns the result of invoking the specified function.